#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include "DynPlayer.h"

int main()
{
	//Create window for application
    sf::RenderWindow App(sf::VideoMode(800,600,32), "Dyna Bomber");
	DynPlayer player;
	
	//===GAME LOOP===

	while(App.IsOpened())
	{
		sf::Event Event;
		while(App.GetEvent(Event))
		{
			//If close button or escape is pressed
			if(Event.Type == sf::Event::Closed ||
			 ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape)))
			{
				App.Close(); 
				break;
			}

		}

		App.Clear();
		
		App.Display();
	}
	

    return 0;
}
